package com.flanz.apache.velocity.uimocker;

import org.apache.velocity.app.event.ReferenceInsertionEventHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * MyReferenceInsertionEventHandler.
 * 
 * @author cf
 * 
 */

public class MyReferenceInsertionEventHandler implements
		ReferenceInsertionEventHandler {
	private static Logger LOG = LoggerFactory
			.getLogger(MyReferenceInsertionEventHandler.class);

	@Override
	public Object referenceInsert(final String paramString,
			final Object paramObject) {
		String value = paramObject != null ? paramObject.toString() : "NULL";
		LOG.info(paramString + "=" + value);
		return value;
	}

}
